maintainer="Michał Polański <michal@polanski.me>"
pkgname=py3-tomli
pkgver=2.0.2
pkgrel=0
pkgdesc="A lil' TOML parser"
url="https://github.com/hukkin/tomli"
license="MIT"
arch="noarch"
makedepends="py3-gpep517 py3-flit-core"
subpackages="$pkgname-pyc"
source="https://github.com/hukkin/tomli/archive/$pkgver/py3-tomli-$pkgver.tar.gz"
builddir="$srcdir/tomli-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	PYTHONPATH=src python3 -m unittest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/tomli-$pkgver-py3-none-any.whl
}

sha512sums="
3eeea334d6d225590a9e074685c65d052e2f5d5286ca895ff7e9532d7289f0daa31ae67b5076d803e5adad4f20a9831058a0c4599715f049079904934d3d9c25  py3-tomli-2.0.2.tar.gz
"
